<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="../include/tag.jsp" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <title>跟进记录</title>
    <link rel="stylesheet" href="${ctx}/css/common/common.css">
    <link rel="stylesheet" href="${ctx}/css/common/list.css">
    <link rel="stylesheet" href="${ctx}/css/common/table.css">
</head>
<body>
<!--内容-->
<section  class="no-fix">
    <div class="section-main" style="padding: 10px">
        <form id="myForm" action="${ctx}/records/records/list.do">
            <input type="hidden" name="pageNo" />
            <input type="hidden" name="targetId" value="${targetId}" />
            <input type="hidden" name="eventId" value="${eventId}" />
        </form>
        <div class="my-act-list-content">
            <div class="cl">
                <table class="layui-table">
                    <colgroup>
                        <col>
                        <col>
                        <col>
                    </colgroup>
                    <thead>
                    <tr>
                        <th>内容</th>
                        <th>时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <c:forEach var="record" items="${recordList}">
                        <tr>
                            <td class="ellipsis-1" title="${record.content}">
                                    ${record.content}
                            </td>
                            <td>
                                <fmt:formatDate value="${record.createDate}" pattern="yyyy-MM-dd HH:mm"/>
                            </td>
                            <td class="tb-opts">
                                <div class="comm-opts">
                                    <%--<a href="${ctx}/records/records/view.do?id=${record.id}" target="_self">--%>
                                        <%--编辑--%>
                                    <%--</a>--%>
                                    <a href="javascript:txz.deleteObject('确定删除？', '${ctx}/records/records/delete.do?id=${record.id}')">
                                        <i class="iconfont icon-delete btn-icon"></i> 删除
                                    </a>
                                </div>
                            </td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </div>
        </div>
        <div id="page_content" class="page-container"></div>
    </div>
</section>


<!--底部-->
<script type="text/javascript" src="${ctxStatic}/jquery/jquery-2.1.4.min.js"></script>
<%@include file="../include/incScript.jsp" %>
<script type="text/javascript" src="${ctx}/script/common/list.js"></script>
<script type="text/javascript" src="${ctx}/script/common/table_option.js"></script>
<script type="text/javascript">
    $(function () {
        //加载分页
        loadPageNew({
            elem: 'page_content',
            totalCount: '${page.totalCount}',
            limit: '${page.limit}',
            page: '${page.page}'
        });
    })
</script>
</body>
</html>